package com.ssd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 礼品兑换表
 * </p>
 *
 * @author author
 * @since 2024-11-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("gift_exchange")
@Builder
@ApiModel(value="GiftExchange对象", description="礼品兑换表")
public class GiftExchange implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "兑换ID")
    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    @ApiModelProperty(value = "礼品ID")
    private Long giftId;
    @ApiModelProperty(value = "礼品名称")
    private String giftName;
    @ApiModelProperty(value = "礼品图片")
    private String giftImage;
    @ApiModelProperty(value = "礼品数量")
    private Integer giftNum;
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    @ApiModelProperty(value = "地址ID")
    private Long addressId;
    @ApiModelProperty(value = "收货人名字")
    private String receiverName;
    @ApiModelProperty(value = "收货人电话")
    private String receiverPhone;
    @ApiModelProperty(value = "详细地址")
    private String addressDetail;
    @ApiModelProperty(value = "快递号")
    private String trackingNumber;

    @ApiModelProperty(value = "状态：1 待发货，2 发货中，3 已完成")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
